-- GENERATED SPELL FOR [Vile] --


function spell0_29860(pUnit, Event) --@Backhand,n/a--
pUnit:FullCastSpellOnTarget(6253,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29860', 2285, 1)
end

function spell1_29860(pUnit, Event) --@Enrage,Self--
pUnit:FullCastSpellOnTarget(56646,pUnit)
pUnit:RegisterEvent('Sorts_29860', 6297, 1)
end

function spell2_29860(pUnit, Event) --@Taunt,n/a--
pUnit:FullCastSpellOnTarget(37548,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_29860', 3000, 1)
end

function Sorts_29860(pUnit, Event)
local choix_sorts_29860 = math.random(0, 2)
if choix_sorts_29860 == 0 then
pUnit:RegisterEvent('spell0_29860', 1, 1)
end
if choix_sorts_29860 == 1 then
pUnit:RegisterEvent('spell1_29860', 1, 1)
end
if choix_sorts_29860 == 2 then
pUnit:RegisterEvent('spell2_29860', 1, 1)
end
end

function mob29860_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_29860', math.random(1500, 3000), 1)
end

function mob29860_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29860_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob29860_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(29860, 1, 'mob29860_Action')
RegisterUnitEvent(29860, 2, 'mob29860_Leave')
RegisterUnitEvent(29860, 3, 'mob29860_Kill')
RegisterUnitEvent(29860, 4, 'mob29860_Die')
